import request from '@/utils/request'

export const onlineUserApi = {
  getPage(pIndex, pSize, data) {
    return request({
      url: `/sys/online-user/page/${pIndex}/${pSize}`,
      method: 'post',
      data
    })
  },

  quit(token) {
    return request({
      url: '/sys/online-user/quit',
      method: 'get',
      params: { token }
    })
  }
}
